package T4;

public class Circle extends T2.Circle {
    public Circle() {
        super(0,0,0);
    }

    public Circle(Point center , int radius) {
        super(center,radius);
    }
    public Circle(int x,int y,int radius){
        super(x,y,radius);
    }

    @Override
    public String toString() {
        return "("+this.getCenter().getX()+","+this.getCenter().getY()+"),"+this.getRadius();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj){
            return true;
        } else if (obj instanceof T2.Circle) {
            T2.Circle circle = (T2.Circle) obj;
            return this.getRadius() == circle.getRadius() && this.getCenter().getX() ==
                    circle.getCenter().getX()
                    && this.getCenter().getY() == circle.getCenter().getY();
            } else return false;
    }
}
